home *** CD-ROM | disk | FTP | other *** search
Text File | 1993-09-17 | 6.7 KB | 178 lines | [TEXT/MPS ] |
- VU Aid 1.0.8 Module Information and Examples
-
- STANDARD MODULES:
-
- db - Display byte of memory. The only parameter is the memory
- location in DECIMAL.
- example: db 15 Returns: -1
-
- dw - Display word of memory. The only parameter is the memory
- location in DECIMAL.
- example: dw 44 Returns: 1
-
- dl - Display long word of memory. The only parameter is the memory
- location in decimal.
- example: dl 44 Returns: 130218
-
- sb - Set byte of memory. Two parameters: memory location
- in decimal and value in decimal.
- example: sb 15 44 Returns: 0
-
- sw - Set word of memory. Two parameters: memory location
- in decimal and value in decimal.
- example: sw 8 16 Returns: --
-
- sl - Set long word of memory. Two parameters: memory location
- in decimal and value in decimal.
- example: sl 8 16 Returns: --
-
- DebugStr - Sends a string to MacsBug. The only parameter is the string
- to be sent to MacsBug. (WARNING: if the string does not end
- with some sort of return, e.g. "g", the machine will not return).
- example: debugstr 'g' Returns: --
-
- Clipboard - Returns the text currently on the clipboard. No parameters.
- example: clipboard Returns: "<string>"
-
-
- ADDITIONS:
-
-
- Balloon - Returns a checksum of the screen image of the current help
- balloon. The balloon can be on any screen. The checksum is ALWAYS
- THE SAME for the same balloon, regardless of screen depth,
- position on the screen, or shape of the balloon--only the text
- part of the balloon is checksummed. If there is no balloon, an
- error is returned. No parameters.
- example: balloon Returns: 44822
-
- Brightness - Returns the current brightness on the machines that support it.
- If a parameter is given, it will set the brightness to that
- value. The possible range of value is determined by the driver.
- Note that if you set the brightness to 0, you will not see anything.
- example: Returns:
-
- ClipCompare - Checksums the contents of the clipboard. Only parameter is the
- type of scrap to retrieve - TEXT, PICT, snd, etc.
-
- CountFonts - Counts the number of fonts installed in the system. No
- parameters.
- example: countfonts Returns: 19
-
- Delete - Deletes a file. The only parameter is the file name.
- The full pathname of the file is required.
- example: delete “<internal drive>:<file name>“ Returns: --
-
- Date - Return the Date in formatted form. No parameters.
- example: date Returns: 3/4/1992
-
- FreeMem - Returns the amount of free memory in the system, not to
- be confused with the largest unused block. No parameters.
- example: freemem Returns: 6194540
-
- Gestalt - Allows any gestalt call. The only parameter is the gestalt
- selector. For example, to see if VM is running, one
- would type "gestalt vm".
- example: varies Returns: varies
-
- GetDepth - Returns the bit depth of the main gdevice. No parameters.
- example: getdepth Returns: 8
-
- GetGray - Returns 1 if the main gdevice is set to gray-scale, 0 if color.
-
- InvertScreen - Inverts the screen or portion thereof, using the same parameters
- as ScreenCompare, thus allowing a visual check of the checksum area.
-
- InvertWindow - Inverts the 2nd window or portion thereof, using the same parameters
- as Window2Compare, thus allowing a visual check of the checksum area.
-
- Launch - Launches a file. First parameter is the file to launch, followed
- by a list of documents to open.
- example: Launch “TeachText” “Read Me” Returns: --
-
- MaxMem - Returns the largest unused block of memory available. No
- parameters.
- example: maxmem Returns: 6215652
-
- Move - Moves a file. First parameter is the source, second is the
- destination. Full pathnames are required.
- example: Move “<source drive>: <source file>“ “<target drive>::<target file>“
- Returns: --
-
- Rename - Renames a file. First parameter is the old name, second is the
- new name. Full pathnames are required.
- example: Rename “<source drive>: <source file>“ “<source drive>: <new name of file>“
- returns: --
-
- RM - Turns off VM.
- example: RM 8 Returns: --
-
- ScreenCompare - Returns the checksum of the startup screen. Optional
- parameters: rect of area to checksum.
- Note: Must be called in inviso-mode or the VUAid dialog will be checksummed.
- Note: Returns a different checksum for each bit-depth.
- Note: Hides cursor before checksumming.
- example: screencompare Returns: checksum number of screen
-
- SetDepth - Sets the bit depth of the main gdevice. The only parameters is
- the new bit-depth: 1,2,4,8,32.
- example: setdepth 2 Returns: --
-
- Time - Returns the time already formatted. No parameters.
- example: Time Returns: 11:43:21
-
- VM - Turns on VM.
- example: VM 12 <drive> Returns: --
-
- WindowCompare - Returns the checksum of the frontmost window. Optional
- parameters: rect of area relative to window to checksum.
- Note: Must be called in inviso-mode or the VUAid dialog will be checksummed.
- Note: Returns a different checksum for each bit-depth.
- Note: Hides cursor before checksumming.
- example: WindowCompare Returns: checksum number of window
-
- Window2Compare - Same as WindowCompare but operates on second-most window,
- eliminating the need for invisible mode.
-
- 24 - Turns off 32-bit mode. No parameters.
- example: 24 Returns: --
-
- 32 - Turns on 32-bit mode. No parameters.
- example: 32 Returns: --
-
- OTHERS:
-
- dgb - Display a global byte. One parameter which is offset of global
- from A5. For example, for a global located at -$10(A5), use
- "dgb 16" to read it.
- example: dgb 16 Returns: 0
-
- dgw - Display a global word (16-bits). Same parameters as "dgb".
- example: dgw 16 Returns: 0
-
- dgl - Display a global long (32-bits). Same parameters as "dgb".
- example: dgl 16 Returns: 0
-
- dgstr - Display a global Pascal string. Same parameters as "dgb".
- example: dgstr 16 Returns: 0
-
- echo - Echo all parameters. Parameters are echoed in double quotes,
- delimited by commas. Example: "echo a b c" results in "a","b","c".
- example: echo a b c Returns: "a", "b", "c"
-
- ERROR HANDLING AND LIMITATIONS
-
- VUAid returns System errors.
- The following is a list of common errors which VU Aid returns.
-
- Sys Error Definition
- -28 Drvr not opened (i.e. Brightness Control Panel not supported)
- -35 No such volume
- -43 File not found.
-
-
- EOF
-
-
- Copyright Apple Computer, Inc. 1992. All rights reserved.
- This is an unsupported Apple product.